<!-- 载入系统通用设置  -->
<?php include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/common_setting_unit.php"); ?>


<!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include_once('../../../modules/head.php'); ?>
    <?php //head 中统一载入了。那部分的工作，应该是controller中引入通用的common的。include_once("../controller/detail-edit.php"); ?>
    <?php include_once('modules/mod-nkeditor.php'); ?>
</head>

<? if(isset($_REQUEST['sys_part']))
{
    $system_part = $_REQUEST ['sys_part'];
}
?>


    <?
	 $detail    = select_one_line_all_items($table_Prefix."plate","sys_belong = '".$_REQUEST['sys_part']."'");
	 $seo_term = explode(',',$detail['seo_term']);
	 $seo_list = explode(',',$detail['seo_list']);
	 $seo_detail = explode(',',$detail['seo_detail']);
	 ?>

</head>




<body>

<div id="topbar">
    <?php include '../../../modules/topbar.php'; ?>
</div>

<div id="container">
    <!--Container端點01-->
    <div id="maincontent">
        <!--maincontent端點01-->

        <div id="sidebar">
            <?php include '../../../modules/sidebar.php'; ?>
        </div>


        <div id="content">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                <legend><h1>板块信息设置-<?echo $detail['name']?></h1></legend>
            </fieldset>


            <div class="detail-box layui-form <? echo $system_part ?>">

                        <form id="site_info" method="post"
                              action="save.php?sys_part=<?echo $_REQUEST['sys_part']?>"
                              enctype="multipart/form-data" name="uploadfile"
                              class="layui-form-pane"
                            >


<div class="layui-form-item plate_name">
    <label class="layui-form-label">版块名称 : </label>
    <div class="layui-input-block">
        <input type="text" name="plate_name"  class="layui-input" value="<?echo $detail['name']?>">
    </div>
</div>

<!-- <div class="layui-form-item">
<label class="layui-form-label">显示层级 : </label>
<div class="layui-input-block">
<input type="checkbox" name="seo_level[]" lay-skin="primary" title="网站首页" value="index"
<?if(strpos($detail['seo_level'],"index") !==false){echo "checked";} ?> >
<input type="checkbox" name="seo_level[]" lay-skin="primary" title="分类页面" value="term"
<?if(strpos($detail['seo_level'],'term') !==false){echo "checked";} ?> >
<input type="checkbox" name="seo_level[]" lay-skin="primary" title="列表页面" value="list"
<?if(strpos($detail['seo_level'], 'list') !==false){echo "checked";} ?> >
<input type="checkbox" name="seo_level[]" lay-skin="primary" title="详情页面" value="detail"
<?if(strpos($detail['seo_level'],'detail') !==false){echo "checked";} ?>>
<input type="checkbox" name="seo_level[]" lay-skin="primary" title="其他页面" value="other"
<?if(strpos($detail['seo_level'],'other') !==false){echo "checked";} ?> >
</div>
<em class="explain">网站的SEO信息会在相关的页面显示。其他页面包含:独立页面，例如留言，信息通知，搜索等页面。</em>
</div>
-->
<div class="layui-form-item plate_url">
    <label class="layui-form-label">链接地址 : </label>
    <div class="layui-input-block">
        <input type="text" name="plate_url"  class="layui-input" value="<?echo $detail['url']?>">
    </div>
</div>



<div class="layui-form-item plate_detail">
    <label class="layui-form-label">资料详情 : </label>
    <div class="layui-input-block">
        <textarea placeholder="请输入内容" class="layui-textarea" name="plate_detail"  ><?echo $detail['detail']?></textarea>
    </div>
</div>


<div class="layui-form-item plate_permit">
    <label class="layui-form-label">版块权限码 : </label>
    <div class="layui-input-block">
        <input type="text" name="plate_permit"  class="layui-input" value="<?echo $detail['permit']?>">
    </div>
</div>


<!--<div class="layui-form-item">-->
<!--    <label class="layui-form-label">板块详情 : </label>-->
<!--    <div class="layui-input-block">-->
<!--        待添加-->
<!--    </div>-->
<!--</div>-->

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 60px;">
                        <legend>SEO设置</legend>
                    </fieldset>
                    
                    
                    <div class="layui-form-item plate_title">
                        <label class="layui-form-label">版块标题  : </label>
                        <div class="layui-input-block">
                            <input type="text" name="plate_title"  class="layui-input" value="<?echo $detail['title']?>">
                        </div>
                    </div>
                    
                    
                    
                    
                    <div class="layui-form-item plate_keywords">
                        <label class="layui-form-label">版块关键词  : </label>
                        <div class="layui-input-block">
                            <input type="text" name="plate_keywords"  class="layui-input" value="<?echo $detail['keywords']?>">
                        </div>
                    </div>
                    
                    
                    <div class="layui-form-item plate_description">
                        <label class="layui-form-label">版块描述  : </label>
                        <div class="layui-input-block">
                            <input type="text" name="plate_description"  class="layui-input" value="<?echo $detail['description']?>">
                        </div>
                    </div>
                    
                    <div class="layui-form-item plate_introduce">
                        <label class="layui-form-label">版块简介 : </label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" class="layui-textarea" name="plate_introduce"  ><?echo $detail['introduce']?></textarea>
                        </div>
                    </div>
                    <ul class="detail-boxing">
                        
                            <li class="seo_term">
                            	<label class="layui-form-label">分类列表：</label>
                                <div class="layui-input-block">
                                	<input type="checkbox" name="seo_term[]" value="site"  title="网站" <?php if(in_array('site',$seo_term)){echo 'checked="checked"';}?>>
                                    <input type="checkbox" name="seo_term[]" value="plate"  title="板块"  <?php if(in_array('plate',$seo_term)){echo 'checked="checked"';}?>>
                                </div>
                            </li>
                        
                            <li class="seo_list">
                            	<label class="layui-form-label">详情列表：</label>
                                <div class="layui-input-block">
                                	<input type="checkbox" name="seo_list[]" value="site" title="网站" <?php if(in_array('site',$seo_list)){echo 'checked="checked"';}?>>
                                    <input type="checkbox" name="seo_list[]" value="plate" title="板块"  <?php if(in_array('plate',$seo_list)){echo 'checked="checked"';}?>>
                                    <input type="checkbox" name="seo_list[]" value="list" title="分类" <?php if(in_array('list',$seo_list)){echo 'checked="checked"';}?>>
                                </div>
                            </li>
                        
                            <li class="seo_detail">
                            	<label class="layui-form-label">详情页：</label>
                                <div class="layui-input-block">
                                	<input type="checkbox" name="seo_detail[]" value="site" title="网站" <?php if(in_array('site',$seo_detail)){echo 'checked="checked"';}?>>
                                    <input type="checkbox" name="seo_detail[]" value="plate" title="板块" <?php if(in_array('plate',$seo_detail)){echo 'checked="checked"';}?> >
                                    <input type="checkbox" name="seo_detail[]" value="list" title="分类" <?php if(in_array('list',$seo_detail)){echo 'checked="checked"';}?>>
                                    <input type="checkbox" name="seo_detail[]" value="detail" title="详情" <?php if(in_array('detail',$seo_detail)){echo 'checked="checked"';}?>>
                                </div>
                            </li>
                          
                    </ul>

<hr/>

                            <div class="function">
                                <input type="submit" class="layui-btn" value="确认"/>
                                <input type="reset" class="layui-btn" value="重置"/>
                            </div>


                        </form>




            </div>

            <!--content端點01-->
        </div>
        <!--maincontent端點01-->
        <br class="clearfloat"/>
    </div>
    <!--container端點01-->
</div>




<?php include  ROOT_PATH_."/controller/modules/footer.php"; ?>
</body>
</html>

